package com.woniuxy.main.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.woniuxy.main.mapper.GymMapper;
import com.woniuxy.main.pojo.Gym;
import com.woniuxy.main.service.GymService;

import lombok.Data;

@Data
@Service
@Transactional
public class GymServiceImp implements GymService{
	
	@Resource
	private GymMapper gymMapper;

	@Override
	public int insertGym(int uid) {
		
		return gymMapper.insertGym(uid);
	}

	@Override
	public Gym findGymByGid(int gid) {
		// TODO Auto-generated method stub
		return gymMapper.findGymByGid(gid);
	}

}
